package ynu.elm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer userId;

    private String username;

    @JsonIgnore // 防止密码在JSON序列化时被暴露
    private String password;

    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}